package com.bls.productmall.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.bls.productmall.entity.Refund;

import java.util.List;
import java.util.Map;

public interface RefundService extends IService<Refund> {

    Refund createRefundByOrderNo(String orderNo, String reason);

    void updateRefund(String content);

    List<Refund> getNoRefundOrderByDuration(int minutes);

    void refund(String orderNo, String reason) throws Exception;

    String queryRefund(String orderNo) throws Exception;

    void checkRefundStatus(String refundNo) throws Exception;

    void processRefund(Map<String, Object> bodyMap) throws Exception;
}
